<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        一个函数有传入3个参数 ，3个参数都是数值 ，把参数组装成数组返还，数组需要是由大到小 。（尽量不要超纲）;
    </div>
    <script>
        function reForm(){
            var min = arguments[0] ;
            var max = arguments[0] ;
            var mid = arguments[0] ; 
            for ( var i = 0 ; i < arguments.length ; i ++ ) {
                if ( min > arguments[i] ){
                    min = arguments[i] ; 
                }
                if ( max < arguments[i] ){
                    max = arguments[i] ; 
                }
            }
            for ( var j = 0 ; j < arguments.length ; j ++ ){
                if ( arguments[j] > min && arguments[j] < max ){
                    mid = arguments[j] ;
                }
            }
            return [ max , mid , min ]
        }
        console.log(reForm(7,5,12));
    </script>
</body>
</html>